Updated package generation based on analysis of bank dependency

ABSTRACT

Aspects of the present invention may be seen in an electronic device network that employs a generator to generate update packages and a corresponding update agent in the electronic device to update its firmware/software. The generator may employ bank order dependency analysis techniques to determine optimum bank orders. The generator may make use of an optimum bank order to generate update packages that are efficient and compact.

RELATED APPLICATIONS

This patent application makes reference to, claims priority to and claims benefit from U.S. Provisional Patent Application Ser. No. 60/485,554, entitled “Update Package Generation by a Generator Based on Analysis of Bank Dependency,” filed on Jul. 8, 2003.

The complete subject matter of the above-referenced U.S. Provisional patent application is hereby incorporated herein by reference, in its entirety. In addition, this application makes reference to U.S. Provisional Patent Application Ser. No. 60/249,606, entitled “System and Method for Updating and Distributing Information,” filed Nov. 17, 2000, and International Patent Application Publication No. WO 02/41147 A1, entitled “Systems And Methods For Updating And Distributing Information,” publication date Mar. 23, 2002, the complete subject matter of each of which is hereby incorporated herein by reference, in its entirety.

FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

[Not Applicable]

MICROFICHE/COPYRIGHT REFERENCE

[Not Applicable]

BACKGROUND OF THE INVENTION

Electronic devices, such as mobile phones and personal digital assistants (PDA's), often contain firmware and application software that are either provided by the manufacturers of the electronic devices, by telecommunication carriers, or by third parties. These firmware and application software often contain software bugs. New versions of the firmware and software are periodically released to fix the bugs or to introduce new features, or both.

Electronic devices may use update packages containing information necessary to update firmware/software in electronic devices. Wireless networks may be used to determine the optimal size of update packages based on size or other characteristics. Wireless networks may be utilized to determine such optimal size in manageable and reasonable, if not in deterministic time.

Generally, creating efficient and compact update packages for firmware/software updates can be challenging. Creating updates as update packages, wherein difference information between an old version and a new version of the firmware/software is expressed using a specialized and efficient instruction set can also be challenge. Creating an update agent that can process these update packages efficiently on the mobile handset can also introduce a great challenge. Furthermore, creating such solutions that can work in different wireless networks can also be problematic.

Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of ordinary skill in the art through comparison of such systems with the present invention.

BRIEF SUMMARY OF THE INVENTION

Aspects of the present invention may be found in a method for determining an optimal order of updating a plurality of memory banks in an electronic device. The updating of a memory bank may comprise storing into the memory bank being updated one of updating information received via a communication network and copies of information already present in the plurality of memory banks. The method may comprise selecting a predetermined portion of the plurality of memory banks, determining the optimal order of updating the selected memory banks, adding a previously unselected memory bank of the plurality of memory banks to the determined optimal order of the selected memory banks. The method may repeat until all of the plurality of memory banks are in the determined optimal order. The predetermined portion may comprise two memory banks. The optimal order may maximize the use of copies of information already present in the plurality of memory banks in the electronic device, and may minimize the volume of updating information received via a communication network.

In various embodiments of the present invention, the electronic device may be portable, and may comprise one of a cellular phone, a personal digital assistant (PDA), a pager, and a personal computer. The received information may comprise a set of executable instructions for converting a first version of code to a second version of code, in the electronic device. The electronic device may be communicatively coupled via the communication network to generator software that generates the updating information. The communication network may comprise a cellular telephone network, a paging network, and a wireless packet network. In an embodiment of the present invention, adding may comprise constructing a first of a plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks before the first memory bank in the determined optimal order of the selected memory banks. Adding may also comprise constructing a second of the plurality of bank orders by adding the previously unselected memory bank of the plurality of memory banks after the last memory bank in the determined optimal order of the selected memory banks. In addition, adding may comprise constructing each of the remainder of the plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks between each pair of memory banks in the determined optimal order of the selected memory banks. In an embodiment in accordance with the present invention, adding may also comprise calculating a cost of updating for each of the plurality of bank orders, to determine an optimal order of updating. Constructing may also comprise performing a circular shift of the determined optimal order of the selected memory banks. The cost of updating may comprise one of an amount of updating information used and a number of executable instructions used, in the updating.

Additional aspects of the present invention may be seen in a machine-readable storage having stored thereon, a computer program having at least one code section being executable by a machine for causing the machine to perform the above.

Further aspects of the present invention may be observed in a system capable of determining an optimal order of updating a plurality of memory banks in an electronic device. The updating of a memory bank may comprise storing into the memory bank being updated one of updating information received via a communication network and copies of information already present in the plurality of memory banks. Such a system may comprise at least one processor capable of selecting a predetermined portion of the plurality of memory banks. The at least one processor may capable of determining the optimal order of updating the selected memory banks, and of adding a previously unselected memory bank of the plurality of memory banks to the determined optimal order of the selected memory banks. The at least one processor may be capable of repeating the determining and adding until all of the plurality of memory banks are in the determined optimal order. The predetermined portion may comprise two memory banks. The optimal order may maximize the use of copies of information already present in the plurality of memory banks in the electronic device, and may minimize the volume of updating information received via a communication network.

In various embodiments in accordance with the present invention, the electronic device may be portable, and may comprise one of a cellular phone, a personal digital assistant (PDA), and a personal computer. The received information may comprise a set of executable instructions for converting a first version of code to a second version of code, in the electronic device. The electronic device may be communicatively coupled via the communication network to generator software that generates the updating information, and the communication network may comprise a cellular telephone network, a paging network, and a wireless packet network. Adding may comprise constructing a first of a plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks before the first memory bank in the determined optimal order of the selected memory banks. Adding may also comprise constructing a second of the plurality of bank orders by adding the previously unselected memory bank of the plurality of memory banks after the last memory bank in the determined optimal order of the selected memory banks. In addition, adding may comprise constructing each of the remainder of the plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks between each pair of memory banks in the determined optimal order of the selected memory banks. Adding may further comprise calculating a cost of updating for each of the plurality of bank orders, to determine an optimal order of updating. The constructing may comprise performing a circular shift of the determined optimal order of the selected memory banks, and the cost of updating may comprise one of an amount of updating information used and a number of executable instructions used, in the updating.

These and other features and advantages of the present invention may be appreciated from a review of the following detailed description of the present invention, along with the accompanying figures in which like reference numerals refer to like parts throughout.

BRIEF DESCRIPTION OF SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 illustrates a block diagram of an exemplary update system for facilitating firmware/software updates in a mobile handset, in accordance with an embodiment of the present invention.

FIG. 2A illustrates exemplary inter-dependencies among banks of an old version and a new version of firmware, in accordance with an embodiment of the present invention.

FIG. 2B shows a directed graph that illustrates the exemplary inter-dependencies among the banks of FIG. 2A, in accordance with an embodiment of the present invention.

FIG. 2C shows a directed graph that illustrates another exemplary inter-dependencies relationship among banks 1, 2, and 3, in accordance with an embodiment of the present invention.

FIG. 2D shows a directed graph that illustrates yet another exemplary inter-dependencies relationship among banks 1, 2, 3, and 4, in accordance with an embodiment of the present invention.

FIG. 3A illustrates exemplary inter-dependencies among banks of an old version and a new version of firmware, in accordance with an embodiment of the present invention.

FIG. 3B shows a directed graph that illustrates the exemplary inter-dependencies relationships among the banks of FIG. 3A, in accordance with an embodiment of the present invention.

FIG. 3C shows a directed graph that illustrates an exemplary sub-graph from the directed graph of inter-dependent banks of FIG. 3B, in accordance with an embodiment of the present invention.

FIG. 3D shows a directed graph that illustrates nodes A, B, and C, having an in-order edge and an out-of-order edge, in accordance with an embodiment of the present invention.

FIG. 4 illustrates a flow diagram of an exemplary algorithm for determining an optimal bank order, in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

The present invention relates generally to generating updates of firmware/software components in electronic devices such as, for example, mobile handsets using an update agent, and specifically to the use of size optimization techniques in the generation of update packages that contain difference information. Although the following discusses aspects of the invention in terms of a mobile handset, it should be clear that the following also applies to other mobile electronic devices such as, for example, personal digital assistants (PDAs), pagers, personal computers (PCs), and similar handheld electronic devices.

FIG. 1 illustrates a block diagram of an exemplary update system 105 for facilitating firmware/software updates in a mobile handset 107, in accordance with an embodiment of the present invention. The update system 105 may comprise a mobile handset 107 communicatively coupled via communication network 133 to a device server 127. The mobile handset 107 may comprise, for example, a cellular phone, a personal digital assistant, a pager, or a personal computer. In various embodiments of the present invention, the communication network 133 may comprise, for example, a cellular telephone network, a paging network, and a wireless packet network. The device server 127 may be communicatively coupled to an update store 129, which may be communicatively coupled to a generator 131. The generator 131 may comprise software for producing an update package usable for updating the mobile handset 107 from a first firmware version and a second firmware version. The term “code” may also used to represent the firmware/software in an electronic device such as, for example, the mobile handset 107.

In an embodiment of the present invention, the update system 105 may dispense update packages generated by the generator 131 to the mobile handset 107. The mobile handset 107 may employ the dispensed update packages to update firmware and/or software. In an embodiment of the present invention, an update package may comprise executable instructions used to convert firmware/software (i.e., code) in the mobile handset 107 from one version to another.

In an embodiment of the present invention, the mobile handset 107 may comprise a random access memory (RAM) unit 125 and a non-volatile memory 109. The non-volatile memory 109 may have a plurality of components such as, for example, a loader 111, an update agent 113, firmware 117, an operating system (OS) 119, applications 121, and an update package 123.

In an embodiment of the present invention, the mobile handset 107 may be capable of updating firmware 117 and/or software 119, 121 employing an update package 123. The update package 123 may be generated by the generator 131, and stored in the update store 129 for retrieval by the device server 127.

For the purpose of updating, the memory of the mobile handset 107 may be logically and/or physically arranged into a collection of banks. The generator 131 may be capable of generating update packages based on an optimum bank update order, or “bank order”. In an embodiment of the present invention, the generator 131 may be capable of determining the optimum bank order. In another embodiment of the present invention, another component of the update system 105 may be capable of determining the optimum bank order.

In an embodiment of the present invention, the generator 131 may employ a technique for processing content to create update packages. The content may be, for example, an older or first version of firmware/software, and a newer or second version of the same firmware/software. The created update packages may be employed by the mobile handset 107 to update the associated firmware/software in the mobile handset 107.

In an embodiment of the present invention, the size of a generated update package may depend upon the bank order of the update of the banks of memory image for the mobile handset 107, the bank order used by mobile handset 107 to update a plurality of banks of a non-volatile memory 109 in the mobile handset 107 as part of an update process. The generator 131 may employ bank order dependency analysis techniques to determine optimum bank orders. In an embodiment of the present invention, the generator 131 may make use of an optimum bank order to generate update packages such as, for example, update package 123, that are efficient and compact such that they may be smaller in size and easier to distribute.

In an embodiment of the present invention, the update package 123 may comprise instructions from a specialized instruction set, and associated data. The specialized instruction set may include instructions such as, for example, COPY and SET instructions. In an embodiment of the present invention, a SET instructions may specify data to be stored in an area of memory being updated. In certain situations, SET instructions may constitute the bulk of the contents, in terms of size or volume, of a generated update package. A COPY instructions, on the other hand, may copy the existing contents of designated areas of the memory of an electronic device to areas of memory currently being updated. For a given amount of memory to be updated, a COPY instruction may be more efficient than a SET instruction, because the COPY instruction uses information already available in the memory of the electronic device being updated. In contrast, SET instructions are accompanied by data values not already available somewhere in the memory of the device being updated. Updating using SET instructions, therefore may involve communicating to the electronic device not only the SET instruction, but also the data values used in updating memory. Thus, reducing the size or volume of an update package may involve reducing the number of SET instructions and/or reducing the amount of data that may need to be set in the SET instructions. In an embodiment of the present invention, the overall size of the number of bytes used in SET instructions may be reduced by optimization techniques that may be employed by the bank order-based generator 131. In another embodiment of the present invention, the number of SET instructions may be minimized by such optimization. In yet another embodiment of the present invention, both the number of SET instructions and the average number of bytes employed by each of the SET instructions may be minimized by the generator 131 using such bank order-based optimizations.

In an embodiment of the present invention, an optimal update technique may be employed to maximize the amount of memory updated using COPY instructions, and to minimize the amount of memory updated using SET instructions.

In an embodiment of the present invention, the use of COPY-type instructions causes the updating of some banks of memory to be dependent upon the updating of other banks of memory. The ability to use the COPY instruction in performing an update of memory depends upon whether the values needed for the update are available to be copied. For example, a table of data values that is located in one bank of memory in an old version of firmware may be located, unchanged, in a different bank of memory in the new version of the firmware. Selecting a bank order that allows the update operation to copy the table of data values from the old bank to the new bank permits the use of a COPY-type instruction, and involves no addition accompanying data. On the other hand, choosing a bank order that results in the prior destruction (e.g., by an earlier COPY or SET update operation) of the bank containing the data values of the table before the update of the bank containing the new location of the table results in the use of a SET-type instruction, and additional accompanying data.

The number of different bank orders that may be used for an update varies depending upon the number of banks of memory being updated. Updating memory according to the various bank orders may result in the use of different mixes of COPY and SET instructions, and therefore different amounts of accompanying data. An embodiment of the present invention may operate so as to minimize the size or volume of the update package produced, by minimizing the number of SET instructions used. Another embodiment of the present invention may operate in a manner that minimizes the amount of backup flash space needed for the update.

FIG. 2A illustrates exemplary inter-dependencies among banks of an old version and a new version of firmware, in accordance with an embodiment of the present invention. For example, the new bank 1 may depend on the old banks 1, 2, and 3; the new bank 2 may depend on the old bank 3; and the new bank 3 may depend on the old bank 1.

FIG. 2B shows a directed graph that illustrates the exemplary inter-dependencies among the banks of FIG. 2A, in accordance with an embodiment of the present invention. Depending on oneself such as, for example, the new bank 1 depending on the old bank 1 may not cause a problem, as such, and self-loops such as, for example, self-loop 201 may be ignored. Loops may then be identified in the graph. In this example, there are two loops in the graph, loop 1 and 3 defined by arrows 203 and 205, and loop 1, 2, and 3 defined by arrows 205, 207 and 209. To update banks that are part of a loop, the dependency may be overcome by backing up one bank. The number of banks that may need to be backed up simultaneously may be equal to the maximum number of loops traversing any single node. For example, both banks 1 and 3 are involved in two loops, so two backup bank spaces may be needed for the banks of FIG. 2B.

FIG. 2C shows a directed graph that illustrates another exemplary inter-dependencies relationship among banks 1, 2, and 3, in accordance with an embodiment of the present invention. In this example, there is only one loop, which is loop 1 and 3. Therefore, one backup bank space may be needed for the banks of FIG. 2C.

FIG. 2D shows a directed graph that illustrates yet another exemplary inter-dependencies relationship among banks 1, 2, 3, and 4, in accordance with an embodiment of the present invention. In this example, there are two loops in the graph, loop 1 and 3, and loop 2 and 4. The two loops, however, do not traverse any common node; therefore, one backup space may be sufficient for the banks.

An embodiment of the present invention may find an optimal update order, where optimal may mean, for example, including the least amount of data accompanying SET instructions. FIG. 3A illustrates exemplary inter-dependencies among banks of an old version and a new version of firmware, in accordance with an embodiment of the present invention. For example, the new bank 1 may depend on the old banks 1, 2, and 3, where the new bank 1 utilizes 500 bytes from the old bank 1, 200 bytes from the old bank 2, and 30 bytes from the old bank 3. Similarly, the new bank 2 may depend on the old banks 2 and 3, where the new bank 2 utilizes 100 bytes from the old bank 2 and 400 bytes from the old bank 3. Also, the new bank 3 may depend on the old banks 1 and 2, where the new bank 3 utilizes 20 bytes from the old bank 1 and 150 bytes from the old bank 2.

FIG. 3B shows a directed graph that illustrates the exemplary inter-dependencies relationships among the banks of FIG. 3A, in accordance with an embodiment of the present invention. Depending on oneself such as, for example, the new bank 1 depending on the old bank 1 may not cause a problem, as such, and self-loops such as, for example, self-loop 301 may be ignored. Similarly, self-loop 313 may also be ignored.

FIG. 3C shows a directed graph that illustrates an exemplary sub-graph from the directed graph of inter-dependent banks of FIG. 3B, in accordance with an embodiment of the present invention. The sub-graph may contain a subset of nodes with all the edges connecting them such as, for example, the nodes representing banks 1 and 3.

For example, let G={V,E} and G′={V′,E′} be directed graphs comprising vertices (a.k.a., nodes) V and V′, and edges E and E′, respectively. Given a permutation P of the nodes of G, a subsequence P′ of P is any subset of V that appear consecutively in P. For example, 235 and 516 are both subsequences of 423516. If the permutation P is optimal for G, then any of its subsequences P′ is also optimal for G′, the sub-graph derived from nodes in P′.

For example, for the illustration shown in FIG. 3C, there may be two possible bank orders. One possibility for the bank order is to first update bank 1, and then update bank 3. The cost for that bank order is 20 bytes of space in an update package. The second possibility for the bank order is to first update bank 3, and then update bank 1. The cost for that bank order is 30 bytes of space in an update package. Therefore, the optimal order for this example sub-graph is to update bank 1, and then update bank 3, or 1,3.

In an embodiment of the present invention, once the optimal order is determined for a pair of nodes, other nodes may be added one at a time, by inserting the added node within the previously determined optimal bank order. For the above example, having an optimal order of 1,3, the possible new optimal orders when adding a new bank 2 are: 2,1,3; 1,3,2; 1,2,3; and 3,2,1 (The bank orders 2,3,1 and 3,1,2 are not consistent with the initial optimal bank order of 1,3, and are eliminated). The cost may then be determined for each combination as follows: Cost(213)=400+150+20=570 Cost(132)=20+400=420 Cost(123)=20+150=170 Cost(321)=400+200+30=630 In an embodiment of the present invention, the optimal order may be the one with the lowest cost, which in the above example is 170, the cost for the bank order 1,2,3.

A generic algorithm may be utilized for determining the optimal order for nodes {1, . . . , k+1} given the optimal order for nodes {1, . . . , k}={p₁, p₂, . . . , p_(k)}. There are 2 k possibilities for the order of nodes {1, . . . , k+1}:

k+1, p₁, p₂, . . . , p_(k)

p₁, k+1, p₂, . . . , p_(k)

p₁, p₂, k+1, . . . , p_(k)

. . .

p₁, p₂, . . . , k+1, p_(k)

p₁, p₂, . . . , p_(k), k+1

p₂, . . . , p_(k), k+1, p₁

p₃, . . . , p_(k), k+1, p₁, p₂

. . .

p_(k), k+1, p₁, p₂, . . .

FIG. 3D shows a directed graph that illustrates nodes A 324, B 325, and C 326, having an in-order edge 321 and an out-of-order edge 323, in accordance with an embodiment of the present invention. The edges 321, 323, 327, 328, 329 of the weighted, directed graph shown in FIG. 3D have weights of a, b, c, d, and e, respectively. Given a weighted, directed graph such as that shown in FIG. 3D, an embodiment of the present invention may find the optimal permutation of nodes, such that the total weights on out-of-order edges such as, for example, out-of-order edge 323, is minimized.

FIG. 4 illustrates a flow diagram of an exemplary algorithm for determining an optimal bank order, in accordance with an embodiment of the present invention. Nodes may represent the banks graphically and the inter-dependencies among the banks to be updated may be represented as shown in FIG. 3B. The algorithm may be entered at a start block 401. At a next block 403, k may be initialized to 2, indicating 2 nodes. An optimal sequence with a minimum cost may be determined for the k nodes at a block 405. At a decision block 407 the number of nodes in the calculation, i.e. k, may be compared to the number of total nodes. If k is not less than the number of nodes, i.e. k is all the nodes, then the algorithm may jump to the end 415.

If k is less than the number of nodes, then at block 409 one more node may be added to the existing k nodes, and 2 k permutations or sequences of the nodes may be constructed using the optimal result determined at block 405. The cost may then be calculated for each of the 2 k sequences at block 411. The value of k may then be incremented by one at block 413, and the optimal sequence with the minimum cost may be determined at block 405. The algorithm may then go through all the nodes until the cost is determined using all the nodes, at which point the algorithm may end up with the optimal sequence that has the minimum cost.

The present invention may be realized in hardware, software, firmware and/or a combination thereof. The present invention may be realized in a centralized fashion in at least one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods described herein may be suitable. A typical combination of hardware and software may be a general-purpose computer system with a computer program that, when being loaded and executed, controls the computer system to carry out the methods described herein.

The present invention may also be embedded in a computer program product comprising all of the features enabling implementation of the methods described herein which when loaded in a computer system is adapted to carry out these methods. Computer program in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; and b) reproduction in a different material form.

While the present invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiment disclosed, but that the present invention will include all embodiments falling within the scope of the appended claims. 

1. A method for determining an optimal bank order of updating a plurality of memory banks in an electronic device, each memory bank comprising a plurality of contiguous memory locations, wherein the updating of a memory bank comprises storing into the memory bank being updated one of updating information received via a communication network and copies of information already present in the plurality of memory banks, the method comprising: (a) selecting a subset of banks of the plurality of memory banks; (b) determining the optimal bank order of updating the selected memory banks; (c) adding a previously unselected memory bank of the plurality of memory banks to the determined optimal bank order of updating the selected memory banks; and (d) repeating (b) and (c) until all of the plurality of memory banks are in the determined optimal bank order of updating the selected memory banks.
 2. The method according to claim 1 wherein the subset of banks comprises two memory banks.
 3. The method according to claim 1 wherein the optimal bank order maximizes the use of copies of information already present in the plurality of memory banks in the electronic device.
 4. The method according to claim 1 wherein the optimal bank order minimizes a volume of updating information received via a communication network.
 5. The method according to claim 1 wherein the electronic device is portable.
 6. The method according to claim 1 wherein the electronic device comprises one of a cellular phone, a personal digital assistant (PDA), a pager, and a personal computer.
 7. The method according to claim 1 wherein the received information comprises a set of executable instructions for converting a first version of code to a second version of code, in the electronic device.
 8. The method according to claim 1 wherein the electronic device is communicatively coupled via the communication network to generator software that generates the updating information.
 9. The method according to claim 1 wherein the communication network comprises a cellular telephone network, a paging network, and a wireless packet network.
 10. The method according to claim 1 wherein adding comprises: constructing a first of a plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks before the first memory bank in the determined optimal bank order of the selected memory banks, a second of the plurality of bank orders by adding the previously unselected memory bank of the plurality of memory banks after the last memory bank in the determined optimal bank order of the selected memory banks, and each of the remainder of the plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks between each pair of memory banks in the determined optimal bank order of the selected memory banks; and calculating a cost of updating for each of the plurality of bank orders, to determine an optimal bank order of updating.
 11. The method according to claim 10 wherein the constructing comprises: performing a circular shift of the determined optimal bank order of the selected memory banks.
 12. The method according to claim 10 wherein the cost of updating comprises one of an amount of updating information used and a number of executable instructions used, in the updating.
 13. A machine-readable storage having stored thereon, a computer program having at least one code section for determining an optimal bank order of updating a plurality of memory banks in an electronic device, each memory bank comprising a plurality of contiguous memory locations, wherein the updating of a memory bank comprises storing into the memory bank being updated one of updating information received via a communication network and copies of information already present in the plurality of memory banks, the at least one code section being executable by a machine for causing the machine to perform steps comprising: (a) selecting a subset of banks of the plurality of memory banks; (b) determining the optimal bank order of updating the selected memory banks; (c) adding an unselected memory bank of the plurality of memory banks to the determined optimal bank order of updating the selected memory banks; and (d) repeating (b) and (c) until all of the plurality of memory banks are in the determined optimal bank order of updating the selected memory banks.
 14. The machine-readable storage according to claim 13 wherein the subset of banks comprises two memory banks.
 15. The machine-readable storage according to claim 13 wherein the optimal bank order maximizes the use of copies of information already present in the plurality of memory banks in the electronic device.
 16. The machine-readable storage according to claim 13 wherein the optimal bank order minimizes a volume of updating information received via a communication network.
 17. The machine-readable storage according to claim 13 wherein the electronic device is portable.
 18. The machine-readable storage according to claim 13 wherein the electronic device comprises one of a cellular phone, a personal digital assistant (PDA), and a personal computer.
 19. The machine-readable storage according to claim 13 wherein the received information comprises a set of executable instructions for converting a first version of code to a second version of code, in the electronic device.
 20. The machine-readable storage according to claim 13 wherein the electronic device is communicatively coupled via the communication network to generator software that generates the updating information.
 21. The machine-readable storage according to claim 13 wherein the communication network comprises a cellular telephone network, a paging network, and a wireless packet network.
 22. The machine-readable storage according to claim 13 wherein adding comprises: constructing a first of a plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks before the first memory bank in the determined optimal bank order of the selected memory banks, a second of the plurality of bank orders by adding the previously unselected memory bank of the plurality of memory banks after the last memory bank in the determined optimal bank order of the selected memory banks, and each of the remainder of the plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks between each pair of memory banks in the determined optimal bank order of the selected memory banks; and calculating a cost of updating for each of the plurality of bank orders, to determine an optimal bank order of updating.
 23. The machine-readable storage according to claim 22 wherein the constructing comprises: performing a circular shift of the determined optimal bank order of the selected memory banks.
 24. The machine-readable storage according to claim 22 wherein the cost of updating comprises one of an amount of updating information used and a number of executable instructions used, in the updating.
 25. A system capable of determining an optimal bank order of updating a plurality of memory banks in an electronic device, each memory bank comprising a plurality of contiguous memory locations, wherein the updating of a memory bank comprises storing into the memory bank being updated one of updating information received via a communication network and copies of information already present in the plurality of memory banks, the system comprising: (a) at least one processor capable of selecting a subset of banks of the plurality of memory banks; (b) the at least one processor capable of determining the optimal bank order of updating the selected memory banks; (c) the at least one processor capable of adding a previously unselected memory bank of the plurality of memory banks to the determined optimal bank order of updating the selected memory banks; and (d) the at least one processor capable of repeating (b) and (c) until all of the plurality of memory banks are in the determined optimal bank order of updating the selected memory banks.
 26. The system according to claim 25 wherein the subset of banks comprises two memory banks.
 27. The system according to claim 25 wherein the optimal bank order maximizes the use of copies of information already present in the plurality of memory banks in the electronic device.
 28. The system according to claim 25 wherein the optimal bank order minimizes a volume of updating information received via a communication network.
 29. The system according to claim 25 wherein the electronic device is portable.
 30. The system according to claim 25 wherein the electronic device comprises one of a cellular phone, a personal digital assistant (PDA), and a personal computer.
 31. The system according to claim 25 wherein the received information comprises a set of executable instructions for converting a first version of code to a second version of code, in the electronic device.
 32. The system according to claim 25 wherein the electronic device is communicatively coupled via the communication network to generator software that generates the updating information.
 33. The system according to claim 25 wherein the communication network comprises a cellular telephone network, a paging network, and a wireless packet network.
 34. The system according to claim 25 wherein adding comprises: constructing a first of a plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks before the first memory bank in the determined optimal bank order of the selected memory banks, a second of the plurality of bank orders by adding the previously unselected memory bank of the plurality of memory banks after the last memory bank in the determined optimal bank order of the selected memory banks, and each of the remainder of the plurality of bank orders by inserting the previously unselected memory bank of the plurality of memory banks between each pair of memory banks in the determined optimal bank order of the selected memory banks; and calculating a cost of updating for each of the plurality of bank orders, to determine an optimal bank order of updating.
 35. The system according to claim 34 wherein the constructing comprises: performing a circular shift of the determined optimal bank order of the selected memory banks.
 36. The system according to claim 34 wherein the cost of updating comprises one of an amount of updating information used and a number of executable instructions used, in the updating. 